module IndexHelper
  def totalColor(amount)
    if (amount == 0) 
      totalColorZero
    elsif (amount > 0)
      totalColorProfit
    else
      totalColorLoss
    end
  end
  def totalColorInv(amount)
    if (amount == 0) 
      totalColorZero
    elsif (amount > 0)
      totalColorLoss
    else
      totalColorProfit
    end
  end

  def totalColorLoss
    "txt_loss"
  end
  def totalColorZero
    "txt_zero"
  end
  def totalColorProfit
    "txt_profit"
  end

end
